
{{- with .Site.Params.docsearch }}
    {{- $outputStyle := "expanded" }}
    {{- if hugo.IsProduction }}{{ $outputStyle = "compressed" }}{{ end }}
    {{- $options := dict "targetPath" "assets/docsearch/bundle.min.css" "outputStyle" $outputStyle "includePaths" (slice "node_modules") }}
    {{- $config := resources.Get "main/scss/_config.scss" | resources.ExecuteAsTemplate "docsearch/scss/_config.scss" . }}
    {{- $main := resources.Get "docsearch/scss/index.scss" }}
    {{- $style := slice $config $main | resources.Concat "docsearch/scss/main.scss"  | toCSS $options | fingerprint }}
    <link data-precache rel="stylesheet" href="{{ $style.RelPermalink }}" crossorigin="anonymous">
    <!-- <link data-precache rel="stylesheet" href="{{ $style.RelPermalink }}" integrity="{{ $style.Data.Integrity }}" crossorigin="anonymous"> -->
{{- end -}}
